package com.meatball.game.asr

class AsrResponse(
    var reqid: String = "unknown",
    var code: Int = 0,
    var message: String = "",
    var sequence: Int = 0,
    var result: Array<Result>? = null,
    var addition: Addition? = null
) {
    data class Result(
        var text: String,
        var confidence: Int,
        var language: String,
        var utterances: Array<Utterances>? = null,
        var global_confidence: Float
    )

    data class Utterances(
        var text: String,
        var start_time: Int,
        var end_time: Int,
        var definite: Boolean,
        var language: String,
        var words: Array<Words>? = null
    )

    data class Words(
        var text: String,
        var start_time: Int,
        var end_time: Int,
        var blank_duration: Int
    )

    data class Addition(
        var duration: String
    )
}